Pod::Spec.new do |s|

  s.name         = "MZToolkit"
  s.version      = "2.2.0"
  s.summary      = "MZToolkit"
  s.description  = "Used for APP based support, Based on YYCategories"
  s.homepage     = "https://gitee.com/zbc101"
  s.license      = "MIT"
  s.author       = { "Chris" => "zbc10101@163.com" }

  s.platform     = :ios
  s.ios.deployment_target = '7.0'
  s.source       = { :git => "git@gitee.com:zbc101/iosTool.git", :tag => s.version }

  s.source_files = "MZToolkit/Classes/*"
  s.public_header_files = "MZToolkit/Classes/*.h"

  s.subspec 'Categories' do |ss|
   ss.source_files = "MZToolkit/Classes/Categories/*"
   ss.public_header_files = "MZToolkit/Classes/Categories/*.h"

   ss.subspec 'DecimalNumber' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/DecimalNumber/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/DecimalNumber/*.h"
   end

   ss.subspec 'NSObject' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/NSObject/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/NSObject/*.h"
   end

   ss.subspec 'UIImage' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/UIImage/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/UIImage/*.h"
   end

   ss.subspec 'UIView' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/UIView/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/UIView/*.h"
   end

   ss.subspec 'UIWebView' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/UIWebView/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/UIWebView/*.h"
   end

   ss.subspec 'Date' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/Date/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/Date/*.h"
   end   

   ss.subspec 'String' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/String/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/String/*.h"
    sss.dependency 'MZToolkit/Categories/DecimalNumber'
   end

   ss.subspec 'Button' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/Button/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/Button/*.h"
   end   

   ss.subspec 'Color' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/Color/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/Color/*.h"
   end   

   ss.subspec 'Font' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/Font/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/Font/*.h"
   end   

   ss.subspec 'Compatible' do |sss|
    sss.source_files = "MZToolkit/Classes/Categories/Compatible/*"
    sss.public_header_files = "MZToolkit/Classes/Categories/Compatible/*.h"
    sss.dependency 'MZToolkit/Categories/DecimalNumber'
   end

  end

  s.subspec 'Animation' do |ss|
   ss.source_files = "MZToolkit/Classes/Animation/*"
   ss.public_header_files = "MZToolkit/Classes/Animation/*.h"
  end

  s.subspec 'CommonInfo' do |ss|
   ss.source_files = "MZToolkit/Classes/CommonInfo/*"
   ss.public_header_files = "MZToolkit/Classes/CommonInfo/*.h"
  end

  # s.framework  = "SomeFramework"
  # s.frameworks = "SomeFramework", "AnotherFramework"
  # s.library   = "z"
  # s.libraries = "iconv", "xml2"
  
  s.requires_arc = true
  # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
  # s.dependency "JSONKit", "~> 1.4"

end
